import Vue from 'vue'
import VueX from 'vuex'

Vue.use(VueX)
export default new VueX.Store({
    //存储状态
    state: {
        order: {

        },
        totalPrice: 0
    },
    mutations: {
        updataOrder(state,data){
            state.order = this.data.order;
        }
    }
})